tests: Add test for booleans to CSS tests
authorBenjamin Otte <otte@redhat.com>
Sat, 9 Apr 2011 11:48:45 +0000 (13:48 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 19:58:44 +0000 (21:58 +0200)
tests/css/parser/Makefile.am
tests/css/parser/boolean.css [new file with mode: 0644]
tests/css/parser/boolean.errors [new file with mode: 0644]
tests/css/parser/boolean.ref.css [new file with mode: 0644]

index b606dcd20201aac4a70bc8b84f3462e7700e737b..e0668fdef0a339b0c3876a362a205dbf4783f970 100644 (file)
@@ -25,6 +25,9 @@ clean-local:
        rm $(builddir)/*.out.css || true
 
 EXTRA_DIST += \
+       boolean.css \
+       boolean.errors \
+       boolean.ref.css \
        close-at-end-of-file.css \
        close-at-end-of-file.errors \
        close-at-end-of-file.ref.css \
diff --git a/tests/css/parser/boolean.css b/tests/css/parser/boolean.css
new file mode 100644 (file)
index 0000000..6773140
--- /dev/null
@@ -0,0 +1,48 @@
+a {
+  boolean-property: true;
+}
+b {
+  boolean-property: TRUE;
+}
+c {
+  boolean-property: tRuE;
+}
+d {
+  boolean-property: 1;
+}
+e {
+  boolean-property: false;
+}
+f {
+  boolean-property: FALSE;
+}
+g {
+  boolean-property: FAlsE;
+}
+h {
+  boolean-property: 0;
+}
+i {
+  boolean-property: trueest;
+}
+j {
+  boolean-property: T;
+}
+k {
+  boolean-property: tru;
+}
+l {
+  boolean-property: 0.0;
+}
+m {
+  boolean-property: 1.0;
+}
+n {
+  boolean-property: fals;
+}
+o {
+  boolean-property: f;
+}
+p {
+  boolean-property: FAL;
+}
diff --git a/tests/css/parser/boolean.errors b/tests/css/parser/boolean.errors
new file mode 100644 (file)
index 0000000..d609f13
--- /dev/null
@@ -0,0 +1,8 @@
+boolean.css:26: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:29: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:32: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:35: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:38: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:41: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:44: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
+boolean.css:47: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE
diff --git a/tests/css/parser/boolean.ref.css b/tests/css/parser/boolean.ref.css
new file mode 100644 (file)
index 0000000..1cc348d
--- /dev/null
@@ -0,0 +1,31 @@
+a {
+  boolean-property: true;
+}
+
+b {
+  boolean-property: true;
+}
+
+c {
+  boolean-property: true;
+}
+
+d {
+  boolean-property: true;
+}
+
+e {
+  boolean-property: false;
+}
+
+f {
+  boolean-property: false;
+}
+
+g {
+  boolean-property: false;
+}
+
+h {
+  boolean-property: false;
+}